package org.dftproject.genesis.ui.figures;

import org.dftproject.genesis.ui.GenesisResources;
import org.eclipse.draw2d.Label;
import org.eclipse.draw2d.PositionConstants;
import org.eclipse.draw2d.ToolbarLayout;
import org.eclipse.jface.resource.JFaceResources;

public class Caption extends Label {
	
	public Caption(String text) {
		super(text);

		setLayoutManager(new ToolbarLayout(false));

		setLabelAlignment(PositionConstants.RIGHT);
		setFont(JFaceResources.getFont(GenesisResources.H1_FONT));
	}

}
